.EQU	T1CON_VAL,	0X0000
.EQU	TMR1_VAL,	0X1004	
.EQU	PR1_VAL,	32767

.INCLUDE	"p33FJ16GS502.INC"
.INCLUDE	"MACRO.INC"
.GLOBAL		TIMER_INITIAL

.TEXT

TIMER_INITIAL:
	MOVFF	#T1CON_VAL,	T1CON
	MOVFF	#TMR1_VAL,	TMR1
	MOVFF	#PR1_VAL,	PR1
	BSET	IPC0,#T1IF
	BCLR	IFS0,#T1IF
	BSET	IEC0,#T1IE
	
	BSET	T1CON,#TON
		